package com.module.my.view;


import androidx.fragment.app.FragmentTransaction;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.module.app.arouter.service.IMyService;
import com.module.app.base.BaseActivity;
import com.module.my.R;

public class MainActivity extends BaseActivity {

    @Autowired
    IMyService mIMyService;

    @Override
    public void bingViewModel() {

    }
    @Override
    protected int getLayoutId() {
        return R.layout.my_activity_mian;
    }

    @Override
    protected void initView() {
        super.initView();
        FragmentTransaction beginTransaction = getSupportFragmentManager().beginTransaction();
        if (beginTransaction == null || mIMyService == null) {
            return;
        }
        beginTransaction.replace(R.id.fragment, mIMyService.getMyFragment());
        beginTransaction.commit();
    }
}
